home *** CD-ROM | disk | FTP | other *** search
-
-
-
- TTTTAAAASSSSKKKKCCCCRRRREEEEAAAATTTTEEEE((((3333PPPP)))) TTTTAAAASSSSKKKKCCCCRRRREEEEAAAATTTTEEEE((((3333PPPP))))
-
-
-
- NNNNAAAAMMMMEEEE
- taskcreate - create a new task
-
- CCCC SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- ####iiiinnnncccclllluuuuddddeeee <<<<ttttaaaasssskkkk....hhhh>>>>
-
- ttttiiiidddd____tttt ttttaaaasssskkkkccccrrrreeeeaaaatttteeee ((((cccchhhhaaaarrrr ****nnnnaaaammmmeeee,,,, vvvvooooiiiidddd ((((****eeeennnnttttrrrryyyy))))(((()))),,,, vvvvooooiiiidddd ****aaaarrrrgggg,,,,
- iiiinnnntttt sssscccchhhheeeedddd))));;;;
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- _T_a_s_k_c_r_e_a_t_e causes a new task to be created for the calling process/task.
- The new task is created via the _s_p_r_o_c(_2) system call, requesting that all
- attributes (e.g. open files, current directory, uid, etc.) be shared.
-
- The new task differs from the calling task as described in _s_p_r_o_c(_2).
-
- The new task will be invoked as follows:
- eeeennnnttttrrrryyyy((((aaaarrrrgggg))))
- vvvvooooiiiidddd ****aaaarrrrgggg;;;;
-
- The _s_c_h_e_d parameter is currently unused and should be set to 0.
-
- No implicit synchronization is implied between tasks - they are free to
- run on any processor in any sequence. Synchronization must be provided
- by the application using locks and semaphores (see _u_s_i_n_i_t(_3_P)).
-
- Each created task has a task block allocated. The task blocks are linked
- together and pointed to by _t_a_s_k_h_e_a_d_e_r. The task block structure is
- defined in _t_a_s_k._h.
-
- _T_a_s_k_c_r_e_a_t_e will fail and no new task will be created if one or more of
- the following are true:
-
- The _s_p_r_o_c(_2) system call fails.
-
- [ENOMEM] The required memory for the task block or task name was
- not available.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- sproc(2), taskblock(3P), taskctl(3P), taskdestroy(3P).
-
- DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
- Upon successful completion, _t_a_s_k_c_r_e_a_t_e returns the task id of the new
- task. The task id is guaranteed to be the smallest available.
- Otherwise, a value of -1 is returned to the calling task, and _e_r_r_n_o is
- set to indicate the error.
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-